Hello guys,
string objNo = "3.1"
int noOfChars = length objNo
// Validate only the last character to ensure that it is a number.
if( ((intOf objNo[noOfChars-1]) < 48 ) || ((intOf objNo[noOfChars-1]) > 57 ) )
{
ack "Invalid section number: Shall end only with a number !"
halt
}
Object othero = null
string s = null
filtering off
for othero in current Module do
{
s = probeAttr_(othero,"Object Number")
if( (s[0:(noOfChars-1)] == objNo) && ( (s[noOfChars:noOfChars] == "") || (s[noOfChars:noOfChars] == ".") || (s[noOfChars:noOfChars] == "-") ) )
accept othero
else
reject othero
}
filtering on
bullbala - Wed Feb 16 04:52:41 EST 2011 |